package com.fzdy.product.controller.guest;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/guest")
public class GuestController {
    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public JSONObject login() {
        JSONObject resobj=new JSONObject();
        resobj.put("statusCode",200);
        resobj.put("message","欢迎进入，您的身份是游客");
        return resobj;
    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public JSONObject submitLogin() {

        JSONObject resobj=new JSONObject();
        resobj.put("statusCode",200);
        resobj.put("message","您拥有获得该接口的信息的权限");
        return resobj;
    }

}
